home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_07_08
/
v7n8014a.txt
< prev
next >
Wrap
Text File
|
1989-10-01
|
742b
|
46 lines
*****Listing 4*****
#include <stdio.h>
#include "externs.h"
#include "debug.h"
#define A 10
#define B 20
#define C 30
main()
{
int i = 5;
f((i * A) + B;
g();
f(C * 10);
}
#include "externs.h"
#include "debug.h"
void g()
{
f(sizeof(double *));
}
The output produced is:
T1> 1: file: T2.C, line: 13, argtxt: (i * 10) + 20
inside f with arg = 70
T2> 1: file: T2.C, line: 13, argtxt: (i * 10) + 20
T1> 2: file: T2G.G, line: 6, argtxt: sizeof(double *)
inside f with arg = 4
T2> 2: file: T2G.C, line: 6, argtxt: sizeof(double *)
T1> 3: file: T2.C, line: 15, argtxt: 30 * 10
inside f with arg = 300
T2> 3: file: T2.C, line: 15, argtxt: 30 * 10
*******************